package ${servicePackage};

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import ${entityPackage}.${entityClassName};
import ${voPackage}.${entityClassName}Vo;
<#if packageExtend??>
<#list packageExtend as item>
import ${item};
</#list>
</#if>
import java.util.List;

public interface ${entityClassName}Service extends IService<${entityClassName}> {

    ${entityClassName}Vo addOne(${entityClassName}Vo ${entityClassName?uncap_first}Vo);

    ${entityClassName}Vo getOneByCode(String code);

    Integer update(${entityClassName}Vo ${entityClassName?uncap_first}Vo);

    Integer delete(String code);

    Integer batchDelete(List<String> codes);

    List<${entityClassName}Vo> findPage(Page page, ${entityClassName}Vo ${entityClassName?uncap_first}Vo);

    Integer count(${entityClassName}Vo fileServerVo);

    List<${entityClassName}Vo> findAll(${entityClassName}Vo ${entityClassName?uncap_first}Vo);

    Integer saveBatch(List<${entityClassName}Vo> ${entityClassName?uncap_first}Vos);

    boolean updateOrSaveBatch(List<${entityClassName}Vo> ${entityClassName?uncap_first}Vos);

    boolean updateBatch(List<${entityClassName}Vo> ${entityClassName?uncap_first}Vos);
<#if methodExtend??>
<#list methodExtend as item>
    ${item}
</#list>
</#if>
}
